package plus.easydo.server.user.mp.config;

import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.StringValue;
import org.springframework.stereotype.Service;
import plus.easydo.starter.mybatis.plus.config.MybatisPlusCustomService;
import plus.easydo.starter.oauth.core.utils.Oauth2Utils;

/**
 * @author laoyu
 * @version 1.0
 */
@Service
public class MybatisPlusCustomServiceImpl implements MybatisPlusCustomService {

    @Override
    public Expression getTenantId() {
        return new StringValue(Oauth2Utils.getTenantId());
    }
}
